package com.cy.detectsys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName db_alienvault
 */
@TableName(value ="db_alienvault")
@Data
public class DbAlienvault implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 
     */
    private String kyEdAlienvaultFilename;

    /**
     * 
     */
    private String kyEdAlienvaultHostname;

    /**
     * 
     */
    private String kyEdAlienvaultAddress;

    /**
     * 
     */
    private String kyEdAlienvaultFlagTitle;

    /**
     * 
     */
    private Date kyEdAlienvaultFirst;

    /**
     * 
     */
    private Date kyEdAlienvaultLast;

    /**
     * 
     */
    private String kyEdAlienvaultAsnName;

    /**
     * 
     */
    private String kyEdAlienvaultAsnId;

    /**
     * 
     */
    private String kyEdAlienvaultRecordType;

    /**
     * 
     */
    private String kyEdAlienvaultAssetType;

    /**
     * 
     */
    private String createUser;

    /**
     * 
     */
    private Date createTime;

    /**
     * 
     */
    private String updateUser;

    /**
     * 
     */
    private Date updateTime;

    /**
     * 
     */
    private Integer deleted;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DbAlienvault other = (DbAlienvault) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getKyEdAlienvaultFilename() == null ? other.getKyEdAlienvaultFilename() == null : this.getKyEdAlienvaultFilename().equals(other.getKyEdAlienvaultFilename()))
            && (this.getKyEdAlienvaultHostname() == null ? other.getKyEdAlienvaultHostname() == null : this.getKyEdAlienvaultHostname().equals(other.getKyEdAlienvaultHostname()))
            && (this.getKyEdAlienvaultAddress() == null ? other.getKyEdAlienvaultAddress() == null : this.getKyEdAlienvaultAddress().equals(other.getKyEdAlienvaultAddress()))
            && (this.getKyEdAlienvaultFlagTitle() == null ? other.getKyEdAlienvaultFlagTitle() == null : this.getKyEdAlienvaultFlagTitle().equals(other.getKyEdAlienvaultFlagTitle()))
            && (this.getKyEdAlienvaultFirst() == null ? other.getKyEdAlienvaultFirst() == null : this.getKyEdAlienvaultFirst().equals(other.getKyEdAlienvaultFirst()))
            && (this.getKyEdAlienvaultLast() == null ? other.getKyEdAlienvaultLast() == null : this.getKyEdAlienvaultLast().equals(other.getKyEdAlienvaultLast()))
            && (this.getKyEdAlienvaultAsnName() == null ? other.getKyEdAlienvaultAsnName() == null : this.getKyEdAlienvaultAsnName().equals(other.getKyEdAlienvaultAsnName()))
            && (this.getKyEdAlienvaultAsnId() == null ? other.getKyEdAlienvaultAsnId() == null : this.getKyEdAlienvaultAsnId().equals(other.getKyEdAlienvaultAsnId()))
            && (this.getKyEdAlienvaultRecordType() == null ? other.getKyEdAlienvaultRecordType() == null : this.getKyEdAlienvaultRecordType().equals(other.getKyEdAlienvaultRecordType()))
            && (this.getKyEdAlienvaultAssetType() == null ? other.getKyEdAlienvaultAssetType() == null : this.getKyEdAlienvaultAssetType().equals(other.getKyEdAlienvaultAssetType()))
            && (this.getCreateUser() == null ? other.getCreateUser() == null : this.getCreateUser().equals(other.getCreateUser()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateUser() == null ? other.getUpdateUser() == null : this.getUpdateUser().equals(other.getUpdateUser()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getKyEdAlienvaultFilename() == null) ? 0 : getKyEdAlienvaultFilename().hashCode());
        result = prime * result + ((getKyEdAlienvaultHostname() == null) ? 0 : getKyEdAlienvaultHostname().hashCode());
        result = prime * result + ((getKyEdAlienvaultAddress() == null) ? 0 : getKyEdAlienvaultAddress().hashCode());
        result = prime * result + ((getKyEdAlienvaultFlagTitle() == null) ? 0 : getKyEdAlienvaultFlagTitle().hashCode());
        result = prime * result + ((getKyEdAlienvaultFirst() == null) ? 0 : getKyEdAlienvaultFirst().hashCode());
        result = prime * result + ((getKyEdAlienvaultLast() == null) ? 0 : getKyEdAlienvaultLast().hashCode());
        result = prime * result + ((getKyEdAlienvaultAsnName() == null) ? 0 : getKyEdAlienvaultAsnName().hashCode());
        result = prime * result + ((getKyEdAlienvaultAsnId() == null) ? 0 : getKyEdAlienvaultAsnId().hashCode());
        result = prime * result + ((getKyEdAlienvaultRecordType() == null) ? 0 : getKyEdAlienvaultRecordType().hashCode());
        result = prime * result + ((getKyEdAlienvaultAssetType() == null) ? 0 : getKyEdAlienvaultAssetType().hashCode());
        result = prime * result + ((getCreateUser() == null) ? 0 : getCreateUser().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateUser() == null) ? 0 : getUpdateUser().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getDeleted() == null) ? 0 : getDeleted().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", kyEdAlienvaultFilename=").append(kyEdAlienvaultFilename);
        sb.append(", kyEdAlienvaultHostname=").append(kyEdAlienvaultHostname);
        sb.append(", kyEdAlienvaultAddress=").append(kyEdAlienvaultAddress);
        sb.append(", kyEdAlienvaultFlagTitle=").append(kyEdAlienvaultFlagTitle);
        sb.append(", kyEdAlienvaultFirst=").append(kyEdAlienvaultFirst);
        sb.append(", kyEdAlienvaultLast=").append(kyEdAlienvaultLast);
        sb.append(", kyEdAlienvaultAsnName=").append(kyEdAlienvaultAsnName);
        sb.append(", kyEdAlienvaultAsnId=").append(kyEdAlienvaultAsnId);
        sb.append(", kyEdAlienvaultRecordType=").append(kyEdAlienvaultRecordType);
        sb.append(", kyEdAlienvaultAssetType=").append(kyEdAlienvaultAssetType);
        sb.append(", createUser=").append(createUser);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateUser=").append(updateUser);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", deleted=").append(deleted);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}